﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_MST_SIGNATURE_ATTACHED
// * CreateDate    : 2012/2/27 17:18:07
// * Creater       : CodeSmith
// * LastChangeDate: 2012/2/27 17:18:07
// * LastChanger   : 2012/2/27 17:18:07
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class MstSignatureAttachedEntity : EntityBase
    {
        public MstSignatureAttachedTable TableSchema
        {
            get
            {
                return MstSignatureAttachedTable.Current;
            }
        }

        public MstSignatureAttachedEntity()
        {

        }

        public MstSignatureAttachedEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.SignatureId = Convert.ToString(CommonFunctions.ToObject(dr["SIGNATURE_ID"]));
            this.PersonId = Convert.ToString(CommonFunctions.ToObject(dr["PERSON_ID"]));
            this.FileName = Convert.ToString(CommonFunctions.ToObject(dr["FILE_NAME"]));
        }

        public MstSignatureAttachedEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.SignatureId = Convert.ToString(CommonFunctions.ToObject(dr["SIGNATURE_ID"]));
            this.PersonId = Convert.ToString(CommonFunctions.ToObject(dr["PERSON_ID"]));
            this.FileName = Convert.ToString(CommonFunctions.ToObject(dr["FILE_NAME"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return MstSignatureAttachedTable.Current;
            }
        }

        #region Perporty List
        public string SignatureId
        {
            get { return Convert.ToString(GetData(MstSignatureAttachedTable.C_SIGNATURE_ID)); }
            set { SetData(MstSignatureAttachedTable.C_SIGNATURE_ID, value); }
        }

        public string PersonId
        {
            get { return Convert.ToString(GetData(MstSignatureAttachedTable.C_PERSON_ID)); }
            set { SetData(MstSignatureAttachedTable.C_PERSON_ID, value); }
        }

        public string FileName
        {
            get { return Convert.ToString(GetData(MstSignatureAttachedTable.C_FILE_NAME)); }
            set { SetData(MstSignatureAttachedTable.C_FILE_NAME, value); }
        }

        #endregion
    }


}

